package com.mhkj.base.itemInfo.building.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.mhkj.base.itemInfo.phase.entity.Phase;
import com.mics.core.common.validate.annotation.Validate;
import com.mics.core.system.base.entity.BaseDomain;

/**
 *   楼栋
 * @author wt
 */
@Entity
@Table(name="t_building")
@Validate
public class Building  extends BaseDomain {

	/**
	 * 序号
	 */
	private static final long serialVersionUID = -6552976445764725962L;

	/**
	 * 楼栋名称
	 */
	@Column(name="building_name")
	private String buildingName;
	/**
	 * 计划建筑面积
	 */
	@Column(name="plan_building_area")
	private Double planBuildingArea;
  
	/**
	 * 楼层数
	 */
	@Column(name="stories_num")
	private Integer  storiesNum ;
	/**
	 * 建筑性质
	 */
	@Column(name="architectural_nature")
	private Long  architecturalNature;
	
	/**
	 * 说明
	 */
	@Column(name="remark",length=550)
	private String remark;
	
	

	@ManyToOne
	@JoinColumn(name = "phase_id")
	private Phase phase;
	

	/**
	 * 期区id
	 */
	@Transient
	private Long phaseId;


	public String getBuildingName() {
		return buildingName;
	}


	public void setBuildingName(String buildingName) {
		this.buildingName = buildingName;
	}


	public Double getPlanBuildingArea() {
		return planBuildingArea;
	}


	public void setPlanBuildingArea(Double planBuildingArea) {
		this.planBuildingArea = planBuildingArea;
	}


	public Integer getStoriesNum() {
		return storiesNum;
	}


	public void setStoriesNum(Integer storiesNum) {
		this.storiesNum = storiesNum;
	}


	public Long getArchitecturalNature() {
		return architecturalNature;
	}


	public void setArchitecturalNature(Long architecturalNature) {
		this.architecturalNature = architecturalNature;
	}


	public String getRemark() {
		return remark;
	}


	public void setRemark(String remark) {
		this.remark = remark;
	}


	public Phase getPhase() {
		return phase;
	}


	public void setPhase(Phase phase) {
		this.phase = phase;
	}


	public Long getPhaseId() {
		return phaseId;
	}


	public void setPhaseId(Long phaseId) {
		this.phaseId = phaseId;
	}

}
